
    {include file="public/header" /} 
	<!-- /头部 -->
	
	<div class="main-container container-fluid">
		<div class="page-container">
		<!-- Page Sidebar -->
            
                {include file="public/left" /} 
            <!-- /Page Sidebar -->
            <!-- Page Content -->
            <div class="page-content">
                <!-- Page Breadcrumb -->
                <div class="page-breadcrumbs">
                    <ul class="breadcrumb">
                        <li>
                            <a href="{:url('admin/index/index')}">系统</a>
                        </li>
                                        <li class="active">配置项管理</li>
                                        </ul>
                </div>
                <!-- /Page Breadcrumb -->

                <!-- Page Body -->
                <div class="page-body">
                    
<button type="button" tooltip="配置项" class="btn btn-sm btn-azure btn-addon" > <i>网站配置</i> 
</button>
<div class="row">
    <div class="col-lg-12 col-sm-12 col-xs-12">
        <div class="widget">
            <div class="widget-body">
                <div class="flip-scroll">
                <form action="{:url('conf/conf')} " method="post" >
                    <table class="table table-bordered table-hover">
                        <thead class="">                       
                            <tr>
                              
                                <th width="20%" class="text-right">配置项</th>
                                <th  class="text-left">配置值</th>
                            
                            </tr>                       
                        </thead>
                        <tbody>
                       <?php foreach($confres as $v): ?>
                        <tr>
                         <td align="right" ><?php echo $v['cnname'];?></td>

                        <td align="left"  >

                        <?php if($v['type'] ==1):?>
                        <input class="form-control" style="width:400px; text-align:left;" type="text" onchange="" name="<?php echo $v['enname'];?>" value="<?php echo $v['value'];?>">

                        <?php elseif($v['type'] ==2):?>
                        <textarea class="form-control" style="width:400px; text-align:left;" name="<?php echo $v['enname'];?>" id="" cols="20" rows="1"><?php echo $v['value']; ?></textarea>

                        <?php elseif($v['type'] ==3):
                                if($v['values']){
                                    $arr=explode(',',$v['values']);
                                }
                                foreach($arr as $k1=>$v1):                       
                            ?>
                        <label style="margin-right: 20px">
                            <input  name="<?php echo $v['enname'];?>" value="<?php echo $v1;?>" type="radio" class="inverted" <?php if($v['value']== $v1):?> checked="checked" <?php endif;?> >
                            <span class="text"><?php echo $v1;?> </span>
                        </label>
                        <?php  endforeach;?>
                        
                        <?php elseif($v['type'] ==4):?>
                        <label>
                        <input type="checkbox" name="<?php echo $v['enname'];?>"  value="<?php echo $v['values'];?>"  class="colored-blue" 
                        <?php if($v['value'] == $v['values']):?> 
                            checked="checked" 
                         <?php endif;?>
                        >
                        <span class="text"><?php echo $v['values'];?></span>
                        </label>
                        
                        <?php elseif($v['type'] ==5):
                            if($v['values']){
                                $arrselect=explode(',',$v['values']);
                                }                      
                            ?>
                        <select name="<?php echo $v['enname'];?>" id="">
                            <?php foreach($arrselect as $k2=>$v2): ?>
                                <option <?php if($v['value']== $v2):?> selected="selected" <?php endif;?>
                                 value="<?php echo $v2;?>"><?php echo $v2;?></option>
                            <?php endforeach;?>
                        </select>
                        <?php endif;?>
                        </td>
                         
                        </tr>
                      <?php  endforeach;?>                            
                    </tbody>
                    </table>

                    <div><input class="btn btn-primary btn-sm shiny" style="margin-left:220px;margin-top:10px" type="submit" value="提交"></div>
            </form>
                </div>

                
                <div>
                	                </div>
            </div>
        </div>
    </div>
</div>

                </div>
                <!-- /Page Body -->
            </div>
            <!-- /Page Content -->
		</div>	
	</div>

	    <!--Basic Scripts-->
    <script src="__ADMIN__/style/jquery_002.js"></script>
    <script src="__ADMIN__/style/bootstrap.js"></script>
    <script src="__ADMIN__/style/jquery.js"></script>
    <!--Beyond Scripts-->
    <script src="__ADMIN__/style/beyond.js"></script>
    


</body></html>